﻿using System;
using System.Collections.Generic;
using System.Text;
using Database;

namespace DB
{
	public class DataBase
	{
		static DataBase instance;
		public static DataBase Instance
		{
			get { return instance; }
		}

		AccessDb access = new AccessDb();

		SubjectItemMapper subjects = new SubjectItemMapper();
		TableItemMapper table = new TableItemMapper();

		public DataBase(string filename)
		{
			instance = this;
			access.FileName = filename;
		}


		public AccessDb Access
		{
			get { return access; }
		}

		public SubjectItemMapper SubjectDB
		{
			get { return subjects; }
		}

		public TableItemMapper TableDB
		{
			get { return table; }
		}
	}
}
